package com.xxljobdemo.xxljobdemo.mapper;

import com.xxljobdemo.xxljobdemo.domain.UserMobilePlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2025/04/02/14:08
 * @Description:
 */
@Mapper
public interface UserMobilePlanMapper {


    @Select("select * from t_user_mobile_plan where mod(id,#{shardingTotal})=#{shardingIndex}")
    List<UserMobilePlan> selectByMod(@Param("shardingIndex") Integer shardingIndex,@Param("shardingTotal")Integer shardingTotal);


    @Select("select * from t_user_mobile_plan")
    List<UserMobilePlan> selectAll();
}
